class MigrationArticleData < ActiveRecord::Migration
  def self.up
    ActiveRecord::Base.transaction do
      execute "insert into articles select id, title, body, created_at, updated_at, replied_at, user_id, discipline_id from posts where type = 'Article'"
    end
  end

  def self.down
    execute "delete from articles"
  end
end
